﻿/// <reference path="//Microsoft.WinJS.1.0/js/base.js" />
(function () {
    var SoundTileModel = WinJS.Class.define(function (soundSource, keyBind, soundType, soundName) {
        this.soundSource = soundSource;
        this.keyBind = keyBind;
        this.soundType = soundType;
        this.soundName = soundName;
    }, {
        soundSource: "",
        keyBind: "",
        soundType: "",
        soundName: "",
        playSound: function () {
            var sound = document.createElement("audio");
            sound.src = this.soundSource;
            sound.play();
        }
    }, {
    });        

    WinJS.Namespace.define("Models", {
        SoundTileModel: SoundTileModel
    })
})();